package secondriver.springsubway.example.rpv;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by ZhangXiao on 2015/6/11.
 */
public interface ParameterValidator {

    public static final String DEFAULT_VALIDATOR_CONFIG = "configure/validator-config.xml";
    public static final String DEFAULT_MESSAGE_BASENAME = "message.Messages";

    /**
     * 处理参数校验
     *
     * @param parameterBeanClass 参数Bean的Class
     * @param request            当前请求
     * @return 返回参数校验的结果
     */
    public ParameterValidatorResult handleParameterValidator(Class parameterBeanClass, HttpServletRequest request);

}